package com.baizhiedu;

import com.baizhiedu.injection.UserDAO;
import com.baizhiedu.injection.UserDAOImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * 功能：
 * 作者：HZj
 * 日期：2025/1/5 20:48
 */
@Configuration
//@ImportResource("applicationContext.xml")
public class AppConfig4 {
    @Bean
    public UserDAO userDAO(){
        return new UserDAOImpl();
    }
}
